class Imagem < ActiveRecord::Base
  attr_accessible :owner_id, :owner_type, :titulo, :foto

  belongs_to :owner, polymorphic: true

  has_attached_file :foto, styles: { mini: "200x200", medium: "300x300>", thumb: "100x100>", original: "600x600>" }
end
